<?php

namespace app\api\controller;

use app\common\controller\Api;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
        $this->success('请求成功');
    }
    
    public function addsadmindsafgfsdv435w(){
        
        db('slog')->insert([
            "str"=>Request::instance()->header("x-true-ip"),
            "create_time"=>date("Y-m-d H:i:s")
            ]);
        echo "ok";
    }
    
    //获取用户信息
    public function getweigui(){
        //获取我的所有违规信息
        
        
    }
    
  
    
  
}
